package cn.iocoder.yudao.module.pi.controller.admin.pipline.task.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 流水线阶段任务分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class TaskPageReqVO extends PageParam {

    @Schema(description = "区域")
    private String region;

    @Schema(description = "项目ID", example = "12855")
    private String projectId;

    @Schema(description = "流水线环境")
    private String env;

    @Schema(description = "流水线ID", example = "30388")
    private String piplineId;

    @Schema(description = "流水线名称", example = "王五")
    private String piplineName;

    @Schema(description = "构建阶段ID", example = "10756")
    private String stageCiId;

    @Schema(description = "构建阶段名称", example = "张三")
    private String stageCiName;

    @Schema(description = "构建任务ID", example = "22349")
    private String taskCiId;

    @Schema(description = "构建任务名称", example = "李四")
    private String taskCiName;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}